<template>
    <nut-cell>
        <section class="message-item">
            <section>
                <nut-badge value="8">
                    <nut-avatar icon="my" shape="square"></nut-avatar>
                </nut-badge>
            </section>

            <section class="liaison-and-latest-message">
                <section class="liaison">girl</section>
                <section class="latest-message">have a nice day!i'm making progress every day
                </section>
            </section>
        </section>
    </nut-cell>
</template>

<style lang="scss" scoped>
.message-item {
    width: 100%;
    display: grid;
    grid-template-columns: 20% 1fr;

    .liaison-and-latest-message {

        .liaison {
            font-weight: bold;
        }

        .latest-message {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
        }
    }
}
</style>